import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {ProblemDetailComponent} from './problem-detail/problem-detail.component';
import {ProblemListComponent} from './problem-list/problem-list.component';

const routes: Routes = [
  { path: '', component: ProblemListComponent },
  { path: ':id', component: ProblemDetailComponent }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ProblemsRoutingModule { }
